﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WpfApp1
{
    /// <summary>
    /// BedSetFrm.xaml 的交互逻辑
    /// </summary>
    public partial class BedSetFrm : Window
    {
        public BedSetFrm()
        {
            InitializeComponent();
        }
        public ObservableCollection<BedSetInfo> AllBedSetList = new ObservableCollection<BedSetInfo>();

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            //测试数据 绑定显示
            for (int i = 1; i < 4; i++)
            {
                BedSetInfo bed = new BedSetInfo();
                bed.ID = i;
                bed.BedAngle = i * 5;
                bed.Duration = i * 10;
                AllBedSetList.Add(bed);
            }
            DataGridBedSet.ItemsSource = AllBedSetList;
        }
    }
}
